package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: access
 * @Author: jeecg-boot
 * @Date: 2021-05-14
 * @Version: V1.0
 */
@Data
@TableName("sys_access")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "sys_access", description = "access")
public class SysAccess implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private Integer userCreate;
    /**
     * 创建日期
     */
    @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date gmtCreate;
    /**
     * 更新人
     */
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private Integer userModified;
    /**
     * 更新日期
     */
    @Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date gmtModified;
    /**
     * 客户id
     */
    @Excel(name = "客户id", width = 15)
    @ApiModelProperty(value = "客户id")
    private Integer customerId;
    /**
     * app_id
     */
    @Excel(name = "app_id", width = 15)
    @ApiModelProperty(value = "app_id")
    private Integer appId;
    /**
     * 协议[字典-protocolType]
     */
    @Excel(name = "协议[字典-protocolType]", width = 15)
    @ApiModelProperty(value = "协议[字典-protocolType]")
    private Integer protocol;
    /**
     * 域名/IP
     */
    @Excel(name = "域名/IP", width = 15)
    @ApiModelProperty(value = "域名/IP")
    private String host;
    /**
     * port
     */
    @Excel(name = "port", width = 15)
    @ApiModelProperty(value = "port")
    private Integer port;
    /**
     * description
     */
    @Excel(name = "description", width = 15)
    @ApiModelProperty(value = "description")
    private String description;
    /**
     * 扩展信息[JSON]
     */
    @Excel(name = "扩展信息[JSON]", width = 15)
    @ApiModelProperty(value = "扩展信息[JSON]")
    private String extraProps;
}
